#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[], char *env[])
{
    // ./mytouch 文件名
    // 判断是否合法
    if (argc != 2)
    {
        printf("touch: missing file operand\n");
        return 1;
    }

    FILE *fp = fopen(argv[1], "w");
    if (fp != NULL)
        fclose(fp);

    return 0;
}



